TaxJar\Order_Tax_Applicator S

Total Complexity 31
Dependencies 8
Dependents 1
Total lines 324
Lines of code 158
Logical lines of code 72
Comment lines 130
Methods 21
Properties 2

Methods 21

Method Rating Maintainability Complexity Lines of code
sum_taxes()
S
58 4 16
apply_tax_to_shipping_item()
S
59 2 15
apply_tax_to_fees()
S
72 2 5
apply_tax_to_shipping_items()
S
74 2 5
check_tax_details_for_nexus()
S
68 2 8
apply_tax_to_line_items()
S
73 2 5
prepare_tax_rates_for_application()
S
64 2 10
get_product_line_item_tax_rate()
S
64 2 9
create_rate_and_apply_to_fee_line_item()
S
60 1 13
get_order_total()
S
68 1 7
update_totals()
S
71 1 5
apply_zero_tax_to_item()
S
81 1 3
get_shipping_tax_rate()
S
80 1 3
__construct()
S
81 1 3
get_tax_rate_for_fee_line_item()
S
72 1 5
apply_tax()
S
72 1 6
create_product_tax_rate()
S
65 1 10
create_rate_and_apply_to_product_line_item()
S
65 1 9
apply_new_tax()
S
69 1 8
remove_existing_tax()
S
81 1 3
get_cart_total_for_order()
S
64 1 10